package com.artisan.si;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Spring Integration 示例应用主启动类
 * 演示 HTTP → SI 流水线 → H2 持久化的完整流程
 */
@SpringBootApplication
public class SiApplication {

	private static final Logger logger = LoggerFactory.getLogger(SiApplication.class);

	public static void main(String[] args) {
		logger.info("启动 Spring Integration 示例应用...");
		SpringApplication.run(SiApplication.class, args);
		logger.info("应用启动完成！");
		logger.info("API 端点: http://localhost:8080/orders");
		logger.info("H2 控制台: http://localhost:8080/h2-console");
		logger.info("健康检查: http://localhost:8080/orders/health");
	}
}
